package com.lyh.educationtrain.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.lyh.educationtrain.entity.response.Response;
import com.lyh.educationtrain.service.UserService;

import lombok.extern.slf4j.Slf4j;


@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
	UserService userService;

	@RequestMapping(value = "test", method = { RequestMethod.GET })
	public Response queryUser() {

		Integer userCout = userService.queryUserCount();
		log.info("userCout is "+ userCout);

		return Response.success(userCout);
	}

}
